package org.procrastinationapp.commons.exceptions;

public class RequiredEntityNotFoundException extends InternalErrorException {

    private static final long serialVersionUID = -7522786686785529429L;

    private String id = null;
    private String entityType = null;

    public RequiredEntityNotFoundException(String entityType, String id) {
        this.id = id;
        this.entityType = entityType;
    }

    @Override
    public String getMessage() {
        return "Not found: '" + id + "' of type '" + entityType + "'";
    }

}
